@font-face {
    font-family: ComicMono;
    src: url(static/ComicMono.ttf);
}

@font-face {
    font-family: 0xProtoNerdFont;
    src: url(static/0xProtoNerdFont-Regular.ttf)
}

html {
    font-family: 0xProtoNerdFont;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    top: 0;
    position: sticky;
    background: #458588;
    color: #f9f5d7;
    max-width: 100%;
    padding: 0;
    z-index: 2;
    border-bottom: 2px solid #b8bb26;
    text-align: center;
}

#heading {
    flex: 1;
    text-align: center;
}

#heading h1 {
    padding: 0;
    margin: 0;
}

header::after {
    content: '';
    width: 50px;
    margin-right: 10px;
    visibility: hidden;
}

body {
    background: #1d2021;
    padding: 0;
    margin: 0;
    text-wrap: balanced;
}

#sidebar {
    background: #fbf1c7;
    color: #3c3836;
    position: fixed;
    left: 0;
    height: 100%;
    min-width: 200px;

    overflow-x: hidden;
    padding: 0 8px;
    z-index: 1;
    border-right: 2px solid #b8bb26;
}

#sidebar ol {
    padding: 0 2rem;
}

#sidebar p {
    font-size: 14pt;
}

#btn-sidebar {
    margin: 16px 16px;
    width: 48px;
    height: 48px;
    background: transparent;
    color: #fbf1c7;
    font-family: ComicMono;
    font-size: 48pt;
    align-self: center;
    border: none;

    transform: rotate(0);
}

#btn-sidebar.open {
    transform: rotate(90deg);
}

#btn-sidebar:hover {
    transition: 0.1s;
    color: #b8bb26;
}



#content {
    background: #fbf1c7;
    color: #3c3836;
    max-width: 60%;
    padding: 24px;
    margin: auto;
    font-size: 14pt;
}

@media screen and (max-width: 1400px) {
    #content {
        max-width: 80%;
    }
}

@media screen and (max-width: 1100px) {
    #content {
        max-width: 100%;
    }
}

table, td, th {
  border: 1px solid #f9f5d7;
  padding: 10px;
}

table {
  border-collapse: collapse;
  color: #fbf1c7;
  background: #1d2021;
}

a {
    color: #458588;
    text-decoration-line: none;
}

pre {
    background: #282828;
    border: 1px solid #3c3836;
    color: #fbf1c7;
    padding: 1rem 1.5rem;
}

code {
    font-family: ComicMono;
    font-size: 11pt;
    text-wrap: wrap;
}

figcaption {
    display: none;
}

img {
    display: block;
    max-width: 80%;
    padding: 12px;
}
